function test() {
    const person = { name: "John", age: 30 };

// 使用 with 语句
    with (person) {
        console.log(name); // 输出 "John"
        console.log(age);  // 输出 30
    }
}
